.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex: 1;
}

.main-layout {
  min-height: 100vh;
}

/* 调整边栏样式 */
.ant-layout-sider {
  background: #fff !important;
}

.ant-layout-sider-children {
  padding-top: 16px;
}

/* 高亮突出PUA内容 */
.pua-highlight {
  background-color: rgba(245, 34, 45, 0.2);
  padding: 2px 4px;
  border-radius: 2px;
  position: relative;
}

.pua-highlight:hover::after {
  content: attr(data-category);
  position: absolute;
  top: -24px;
  left: 0;
  background-color: #f5222d;
  color: white;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

/* 消息优化建议样式 */
.suggestion-container {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background-color: #fafafa;
}

.suggestion-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.suggestion-item {
  margin-bottom: 8px;
  padding: 8px;
  background-color: white;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.suggestion-item:hover {
  border-color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 聊天历史样式 */
.contact-list {
  border-right: 1px solid #f0f0f0;
  overflow-y: auto;
  height: calc(100vh - 64px - 48px);
}

.contact-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 1px solid #f0f0f0;
}

.contact-item:hover {
  background-color: #e6f7ff;
}

.contact-item.active {
  background-color: #e6f7ff;
  border-right: 3px solid #1890ff;
}

/* 工具栏样式 */
.toolbar {
  padding: 8px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbar-button {
  margin-right: 8px;
}

/* 聊天关系设置面板 */
.relationship-panel {
  padding: 16px;
  border-left: 1px solid #f0f0f0;
  background-color: #fff;
  width: 280px;
  overflow-y: auto;
  height: calc(100vh - 64px - 48px);
}

.relationship-title {
  font-weight: bold;
  margin-bottom: 16px;
}

.relationship-form-item {
  margin-bottom: 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .relationship-panel {
    display: none;
  }
  
  .contact-list {
    width: 100% !important;
  }
  
  .toolbar {
    flex-wrap: wrap;
  }
  
  .toolbar-button {
    margin-bottom: 8px;
  }
} 